home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- tellTarget("_root")
- {
- if(getProperty("_root.Animatiques", _currentframe) == 1 and eval("/Variables:Stoppe") != true)
- {
- if(eval("/Variables:PositionCageHaut") eq "Pos4")
- {
- if(318 < getProperty("_root.Meg", _Y))
- {
- setProperty("_root.StepDevant", _visible, 0);
- }
- else
- {
- setProperty("_root.StepDevant", _visible, 1);
- }
- }
- else
- {
- setProperty("_root.StepDevant", _visible, 1);
- }
- if(_root.CacheCrochet.hitTest(_root.Meg._x,_root.Meg._y,true) and eval("/Variables:CrochetRamasse") == false and Key.isDown(32))
- {
- loadVariablesNum("/web/steppenwolf/tracking.jsp?episode=19&stage=22",0);
- set("/Variables:CrochetRamasse",true);
- tellTarget("_root.Sons")
- {
- gotoAndStop("SndRamasse");
- play();
- }
- set("/Variables:InvNb",eval("/Variables:InvNb") + 1);
- set("/Variables:InvObjet" + eval("/Variables:InvNb"),2);
- tellTarget("_root.Crochet")
- {
- gotoAndStop(2);
- }
- }
- if(_root.CacheVersTab2.hitTest(_root.Meg._x,_root.Meg._y,true))
- {
- set("/Variables:MegSurPont",true);
- set("/Variables:From","Tab3c");
- tellTarget("_root")
- {
- gotoAndStop("Tab2Ini");
- play();
- }
- }
- if(_root.CacheCageStep.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(32))
- {
- if(eval("/Variables:ObjetSelect") == 16)
- {
- set("/Variables:Stoppe",true);
- tellTarget("_root.Animatiques")
- {
- gotoAndStop("DebarreCage");
- }
- tellTarget("_root")
- {
- gotoAndStop("Tab3cStoppe");
- }
- }
- else if(eval("/Variables:MegCri") == false and eval("/Variables:PositionCageHaut") eq "Pos4")
- {
- set("/Variables:MegCri",true);
- tellTarget("_root.Sons")
- {
- gotoAndStop("ItsLocked");
- play();
- }
- }
- }
- if(_root.CacheGrimpeCage.hitTest(_root.Meg._x,_root.Meg._y,true) and Key.isDown(32))
- {
- set("/Variables:Arrive","BasChaine");
- tellTarget("_root")
- {
- gotoAndStop("Tab3cGrimpe");
- }
- }
- if(!Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up) and Idle == false)
- {
- Idle = true;
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Idle");
- play();
- }
- }
- if(Key.isDown(16))
- {
- set("/Variables:Run",true);
- }
- else
- {
- set("/Variables:Run",false);
- }
- if(Key.isDown(39) and !Key.isDown(38) and !Key.isDown(40))
- {
- if(Key.isDown(17))
- {
- if(eval("/Variables:Dir") == "Right")
- {
- set("/Variables:Dir","Right");
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- set("/Variables:Dir","Right");
- tellTarget("_root.Meg")
- {
- gotoAndStop("Right");
- }
- }
- }
- else
- {
- set("/Variables:Dir","Right");
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("Right");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- }
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- }
- }
- }
- if(Key.isDown(37) and !Key.isDown(38) and !Key.isDown(40))
- {
- if(Key.isDown(17))
- {
- if(eval("/Variables:Dir") == "Left")
- {
- set("/Variables:Dir","Left");
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- set("/Variables:Dir","Left");
- tellTarget("_root.Meg")
- {
- gotoAndStop("Left");
- }
- }
- }
- else
- {
- set("/Variables:Dir","Left");
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("Left");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- }
- setProperty("_root.Meg", _X, _root.Meg._x - eval("/Variables:Delta"));
- }
- }
- }
- if(Key.isDown(38) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
- {
- set("/Variables:Dir","Right");
- if(Key.isDown(17))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("Up");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(40) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left))
- {
- set("/Variables:Dir","Down");
- if(Key.isDown(17))
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- Idle = false;
- set("/Variables:Stoppe",true);
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("DOWN");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(38) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Down))
- {
- set("/Variables:Dir","Right");
- if(Key.isDown(17))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("UpRight");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(38) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Down))
- {
- set("/Variables:Dir","Left");
- if(Key.isDown(17))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("UpLeft");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y - eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y - eval("/Variables:Delta") / 2 - eval("/Variables:Delta") / 3 / 2);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale - _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale - _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(Key.Down) and !Key.isDown(Key.Right) and Key.isDown(Key.Left) and !Key.isDown(Key.Up))
- {
- set("/Variables:Dir","Left");
- if(Key.isDown(17))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("DownLeft");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x - eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x - eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(Key.Down) and Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
- {
- set("/Variables:Dir","Right");
- if(Key.isDown(17))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- else
- {
- if(Idle == true)
- {
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop(1);
- }
- Idle = false;
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("DownRight");
- }
- tellTarget("_root.Meg/Obj")
- {
- nextFrame();
- }
- if(Collider.hitTest(_root.Meg._x + eval("Variables:Delta") * 2,_root.Meg._y + eval("Variables:Delta") * 2,true) == false)
- {
- if(eval("/Variables:Run") == true)
- {
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- set("/Variables:Delta",_root.Meg._yscale / eval("/Variables:VarieDelta"));
- setProperty("_root.Meg", _Y, _root.Meg._y + eval("/Variables:Delta") - eval("/Variables:Delta") / 3);
- setProperty("_root.Meg", _X, _root.Meg._x + eval("Variables:Delta"));
- setProperty("_root.Meg", _xscale, _root.Meg._xscale + _root.Meg._xscale * (eval("/Variables:Decale") / 100));
- setProperty("_root.Meg", _yscale, _root.Meg._yscale + _root.Meg._yscale * (eval("/Variables:Decale") / 100));
- }
- }
- }
- if(Key.isDown(17) and !Key.isDown(Key.Down) and !Key.isDown(Key.Right) and !Key.isDown(Key.Left) and !Key.isDown(Key.Up))
- {
- Idle = false;
- set("/Variables:Stoppe",true);
- tellTarget("_root.Meg/Obj")
- {
- gotoAndStop("Saute");
- play();
- }
- }
- if(CacheTrou2.hitTest(_root.Meg._x,_root.Meg._y,true) == true)
- {
- set("/Variables:DeltaTombe",eval("/Trou:Niveau"));
- tellTarget("_root.Meg")
- {
- gotoAndStop("Tombe");
- }
- set("/Variables:Stoppe",true);
- }
- if(CacheTrou3.hitTest(_root.Meg._x,_root.Meg._y,true) == true)
- {
- set("/Variables:DeltaTombe",eval("/Trou:Niveau"));
- tellTarget("_root")
- {
- gotoAndStop("TombeTrou3");
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("Tombe");
- }
- set("/Variables:Stoppe",true);
- }
- if(CacheTrou1.hitTest(_root.Meg._x,_root.Meg._y,true) == true)
- {
- set("/Variables:DeltaTombe",eval("/Trou:Niveau"));
- tellTarget("_root")
- {
- gotoAndStop("TombeTrou1");
- }
- tellTarget("_root.Meg")
- {
- gotoAndStop("Tombe");
- }
- set("/Variables:Stoppe",true);
- }
- }
- }
- }
-